package com.itheima02;

public class Test {
    public static void main(String[] args) {
        BasicTeacher  basicTeacher = new BasicTeacher();
        basicTeacher.setName("张三");
        basicTeacher.setAge("28");
        System.out.println(basicTeacher.toString());
        basicTeacher.dirnk();
        basicTeacher.teach();
        System.out.println("--------------------------------");

        BasicTeacher basicTeacher1 = new BasicTeacher("王五","38");
        System.out.println(basicTeacher1.toString());
        basicTeacher1.dirnk();
        basicTeacher1.teach();
    }
}
